<?php declare(strict_types=1);

namespace App\Util;

class WhereUtil
{

    //设置多种格式条件
    public static function filterWhere(array $where): array
    {
        $newWhere = [];
        foreach ($where as $v) {
            if (is_array($v) && count($v) == count($v, 1) && count($v) == 3 && $v[1] == "=") {
                array_push($newWhere, $v);
            }
        }
        return $newWhere;
    }

}